CISC 1110 Lab 17 Nested Loop
Write a simple program that uses a nested loop to do the following:
The outer loop will read in a series of numbers from a file. The numbers read in will determine how many times the inner loop processes. For example, if you read in a 3, the inner loop will process 3 times. If you read in 3, 4, and then 5, the inner loop will go around 3 times, then 4 times, then 5 times.
The inner loop will print a line of symbols (you pick the symbol), as many as the number entered in the outer loop. So if you enter 7 as the value in the outer loop, the inner loop will print a row of 7 of your chosen symbol. If you enter 9, it will print 9 symbols. You can even create a pattern.
*
* *
* * *
* * * *
* * *
* *
*
or
&&&&&&&&&&
&&&&&&&&&
&&&&&&&&
&&&&&&&
&&&&&&
&&&&&
&&&&